﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ws_appPrivada/msContenido.Master" AutoEventWireup="true" CodeBehind="wManTipoCelular.aspx.cs" Inherits="SRPCENTRIA.ws_appPrivada.wManTipoCelular" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

<script type="text/javascript" language="javascript">
    function mostrardiv() {
        div = document.getElementById('ocultar');
        div.style.display = "block";
    }
</script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<form runat="server" id="form1">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>

<table width=100%>
    <tr>
        <td valign="top">
            <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td background="images/caja04.gif" width="14">
                        &nbsp;</td>
                    <td bgcolor="#FFFFFF">
                        <h1>
                            Mantenimiento de Tipo de Celular</h1>
                        <div class="round">
                            <span class="top"><span></span></span>
                            <div class="contenido">
                                <h3>
                                    Buscar Tipo de Celular</h3>
                                <table cellpadding="2" cellspacing="2" width="100%">
                                    <tr>
                                        <td width="140px">
                                            Nombre&nbsp;Tipo&nbsp;de&nbsp;Celular:</td>
                                        <td>
                                            <asp:TextBox ID="txtBuscar" runat="server" class="formularios" MaxLength="50" onblur="this.value = this.value.toUpperCase()"
                                                Width="99%"></asp:TextBox>
                                            <cc1:FilteredTextBoxExtender ID="FtbeNomComercial" runat="server" 
                                                TargetControlID="txtBuscar" 
                                                ValidChars="ABCDEFGHIJKLMNÑOPQRSTUVWXYZabcdefghijklmnñopqrstuvwxyzáéíóú()ÁÉÍÓÚ. ">
                                            </cc1:FilteredTextBoxExtender>
 
                                     
                                        </td>
                                        <td align="center" width="130">
                                            <asp:Button ID="btnBuscar" runat="server" class="submitBtn" 
                                                onclick="btnBuscar_Click" Text="Buscar" />
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <span class="bottom"><span></span></span>
                        </div>
                        <div class="round">
                            <span class="top"><span></span></span>
                            <div class="contenido">
                                <h3>
                                    resultado</h3>
                                <p>
                                    <asp:HiddenField ID="hdnCodigo" runat="server" />
                                </p>
                                <asp:Label ID="lblError" runat="server" BackColor="#9A5454" BorderStyle="None" 
                                    Font-Strikeout="False" ForeColor="White" Visible="False" Width="100%"></asp:Label>
                                <asp:GridView ID="grvDatos" runat="server" AllowPaging="True" 
                                    AutoGenerateColumns="False" class="tablaMain" 
                                    onpageindexchanging="grvDatos_PageIndexChanging" 
                                    onselectedindexchanged="grvDatos_SelectedIndexChanged" PageSize="5">
                                    <Columns>
                                        <asp:BoundField DataField="VTIP_CODIGO_TIPO_CELULAR" HeaderText="Código">
                                        <ItemStyle CssClass="columnaOscura" Width="1%" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="VTIP_DESCRIPCION_TIPO_CELULAR" HeaderText="Nombre">
                                        <ItemStyle CssClass="columnaOscura" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="ESTADO" HeaderText="Estado">
                                        <ItemStyle CssClass="columnaOscura" Width="1%" />
                                        </asp:BoundField>
                                        <asp:CommandField ButtonType="Image" HeaderText="Editar" 
                                            SelectImageUrl="~/images/ico_editar.gif" ShowSelectButton="True" >
                                        <ItemStyle Width="1%" />
                                        </asp:CommandField>
                                    </Columns>
                                </asp:GridView>
                            </div>
                            <span class="bottom"><span></span></span>
                        </div>
                        <asp:Panel ID="pnlmantenimieto" runat="server" CssClass="CajaDialogo" 
                            Width="100%">
                            <div class="round">
                                <span class="top"><span></span></span>
                                <div class="contenido">
                                    <h3>
                                        Nuevo / Editar Tipo de Celular</h3>
                                    <table cellpadding="2" cellspacing="2" width="99%">
                                        <tr>
                                            <td align="right">
                                                Nombre Tipo de Celular:</td>
                                            <td align="center">
                                                <asp:TextBox ID="txtdescripcion" runat="server" class="formularios" Width="99%"
                                                    MaxLength="50" onblur="this.value = this.value.toUpperCase()"></asp:TextBox>
                                            </td>
<%--                                            <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" 
                                                TargetControlID="txtdescripcion" 
                                                ValidChars="ABCDEFGHIJKLMNÑOPQRSTUVWXYZabcdefghijklmnñopqrstuvwxyzáéíóú()ÁÉÍÓÚ. ">
                                            </cc1:FilteredTextBoxExtender>--%>
                                            <td align="right">
                                                Estado:</td>
                                            <td align="center">
                                                <asp:CheckBox ID="chkEstado" runat="server" />
                                            </td>
                                            <td>
                                                <asp:Button ID="btnAgregar" runat="server" class="submitBtn" 
                                                    onclick="btnAgregar_Click" Text="Agregar Tipo de Celular" />
                                                <asp:Button ID="btnEditar" runat="server" class="submitBtn" 
                                                    onclick="btnEditar_Click" Text="Actualizar Tipo de Celular" Visible="false" />
                                            </td>
                                        </tr>
                                    </table>
                                    <span class="bottom"><span></span></span>
                                </div>
                            </div>
                        </asp:Panel>
                        <p align="center">
                        </p>
                    </td>
                    <td background="images/caja05.gif" width="14">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td width="14">
                        &nbsp;</td>
                    <td background="images/caja07.gif">
                    </td>
                    <td width="14">
                        &nbsp;</td>
                </tr>
            </table>
        </td>
    </tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</form>
</asp:Content>
